spi: armada100_spi: Remove unnecessary NULL test for dout and din
authorAxel Lin <[email protected]>
Tue, 11 Jun 2013 13:57:31 +0000 (21:57 +0800)
committerJagannadha Sutradharudu Teki <[email protected]>
Thu, 13 Jun 2013 17:25:18 +0000 (22:55 +0530)
Signed-off-by: Axel Lin <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
Acked-by: Ajay Bhargav <[email protected]>
Reviewed-by: Jagannadha Sutradharudu Teki <[email protected]>
drivers/spi/armada100_spi.c

index afdbe0508ca1c0db7cc88237e45288c626f8e304..b237c7c0feac747eeaf8649e65ab8fba3407bdbb 100644 (file)
@@ -182,15 +182,8 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout,
                goto done;
        }
 
-       if (dout)
-               pss->tx = dout;
-       else
-               pss->tx = NULL;
-
-       if (din)
-               pss->rx = din;
-       else
-               pss->rx = NULL;
+       pss->tx = dout;
+       pss->rx = din;
 
        if (flags & SPI_XFER_BEGIN) {
                spi_cs_activate(slave);